﻿<Window x:Class="Greenshot2.Capture.CaptureWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        WindowStyle="None" Topmost="True" Loaded="Window_Loaded" Left="0" Top="0" ResizeMode="NoResize" AllowsTransparency="True" Cursor="Cross" KeyDown="Window_KeyDown" UseLayoutRounding="True" SnapsToDevicePixels="True">
    <Canvas Name="OuterCanvas">
        <Canvas MouseMove="Canvas_MouseMove" MouseDown="Canvas_MouseDown" MouseUp="Canvas_MouseUp">
            <Image Name="Capture" Source="{Binding Image}" UseLayoutRounding="True" SnapsToDevicePixels="True" Stretch="None"/>
            <Rectangle Fill="#803CA526" Name="SelectedArea"/>
            <Line Name="CrossHorizontal1" Stroke="Black"/>
            <Line Name="CrossHorizontal2" Stroke="Black"/>
            <Line Name="CrossVertical1" Stroke="Black"/>
            <Line Name="CrossVertical2" Stroke="Black"/>
        </Canvas>
        <Canvas Name="Magnifier" Width="90" Height="90" UseLayoutRounding="True" SnapsToDevicePixels="True">
            <Ellipse Name="ContentHolder" Width="90" Height="90" UseLayoutRounding="True" SnapsToDevicePixels="True">
                <Ellipse.Fill>
                    <VisualBrush x:Name="MagnifiedContent" Visual="{Binding ElementName=Capture}" RenderOptions.BitmapScalingMode="LowQuality" ViewboxUnits="Absolute" TileMode="None"/>
                </Ellipse.Fill>
            </Ellipse>
            <Line Name="MCrossHorizontal" Stroke="Black"/>
            <Line Name="MCrossVertical" Stroke="Black"/>
        </Canvas>
    </Canvas>
</Window>
